<h1>New workreport</h1>

<%= error_messages_for :workreport %>

<% form_for(@workreport) do |f| %>
	<p>
		<%= @project.title %>
	</p>

  <p>
    <label for="task_id">Associated task</label><br />
    <%= f.collection_select :task_id, @reportable_tasks, :id, :name %>
  </p>

  <p>
    <label for="date">Date</label><br />
    <%= f.date_select :date %>
  </p>

  <p>
    <label for="time">Time</label><br />
    <%= f.text_field :time, :size => 10 %> h
  </p>

  <p>
    <label for="comment">Comment</label><br />
    <%= f.text_area :comment, :rows => 5, :cols => 32 %>
  </p>

  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', workreports_path %>
